home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsISelectionImageService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  109 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISelectionImageService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISelectionImageService_h__
  6. #define __gen_nsISelectionImageService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class imgIContainer;
  18.  
  19. /* starting interface:    nsISelectionImageService */
  20. #define NS_ISELECTIONIMAGESERVICE_IID_STR "f6f68e3c-f078-4235-bf71-53d180c37d26"
  21.  
  22. #define NS_ISELECTIONIMAGESERVICE_IID \
  23.   {0xf6f68e3c, 0xf078, 0x4235, \
  24.     { 0xbf, 0x71, 0x53, 0xd1, 0x80, 0xc3, 0x7d, 0x26 }}
  25.  
  26. class NS_NO_VTABLE nsISelectionImageService : public nsISupports {
  27.  public: 
  28.  
  29.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISELECTIONIMAGESERVICE_IID)
  30.  
  31.   /**
  32.     * the current image is marked as invalid
  33.     */
  34.   /* void reset (); */
  35.   NS_IMETHOD Reset(void) = 0;
  36.  
  37.   /**
  38.     * retrieve the image for alpha blending
  39.     */
  40.   /* void getImage (in short selectionValue, out imgIContainer container); */
  41.   NS_IMETHOD GetImage(PRInt16 selectionValue, imgIContainer * *container) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSISELECTIONIMAGESERVICE \
  47.   NS_IMETHOD Reset(void); \
  48.   NS_IMETHOD GetImage(PRInt16 selectionValue, imgIContainer * *container); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSISELECTIONIMAGESERVICE(_to) \
  52.   NS_IMETHOD Reset(void) { return _to Reset(); } \
  53.   NS_IMETHOD GetImage(PRInt16 selectionValue, imgIContainer * *container) { return _to GetImage(selectionValue, container); } 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  56. #define NS_FORWARD_SAFE_NSISELECTIONIMAGESERVICE(_to) \
  57.   NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } \
  58.   NS_IMETHOD GetImage(PRInt16 selectionValue, imgIContainer * *container) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(selectionValue, container); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsSelectionImageService : public nsISelectionImageService
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSISELECTIONIMAGESERVICE
  69.  
  70.   nsSelectionImageService();
  71.  
  72. private:
  73.   ~nsSelectionImageService();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsSelectionImageService, nsISelectionImageService)
  81.  
  82. nsSelectionImageService::nsSelectionImageService()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsSelectionImageService::~nsSelectionImageService()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* void reset (); */
  93. NS_IMETHODIMP nsSelectionImageService::Reset()
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* void getImage (in short selectionValue, out imgIContainer container); */
  99. NS_IMETHODIMP nsSelectionImageService::GetImage(PRInt16 selectionValue, imgIContainer * *container)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103.  
  104. /* End of implementation class template. */
  105. #endif
  106.  
  107.  
  108. #endif /* __gen_nsISelectionImageService_h__ */
  109.